package github.kawaiior.yuanchuxiuzhen.common.container.number;

import net.minecraft.util.IIntArray;

public class WeaponFurnaceContainerItemNumber implements IIntArray {
    int i = 0;
    final int max = 20;

    @Override
    public int get(int index) {
        return i;
    }

    @Override
    public void set(int index, int value) {
        i = value;
    }

    @Override
    public int size() {
        return 1;
    }

    public int getMax() {
        return max;
    }

    public void reset(){
        this.i = 0;
    }

    public void tick(){
        i++;
    }

    public float getProgress(){
        return (i + 0F) / this.max;
    }
}
